<template>
  <div id="GoodsList" class="goods">
    <goods-list-item v-for="item in goods" :goodsItem="item" :key="item.iid">

    </goods-list-item>
  </div>
</template>

<script>
import goodsListItem from "./GoogsListItem.vue"

export default {
  name: "GoodsList",
  props: {
    goods: { //商品数据
      type: Array,
      default() {
        return []
      }
    }
  },
  components: {
    goodsListItem
  }
}
</script>

<style scoped>
  .goods {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 2px;
  }
</style>
